package com.register;

import java.util.Scanner;

public class Page {
    Name name = new Name();
    PassWord passWord =new PassWord();
    Scanner sc = new Scanner(System.in);
    Email email = new Email();
    public void surePassWord(){
        System.out.println("重新确认密码");
        if (!sc.next().equals(passWord.getStr())){
            System.out.println("输入错误，请重新输入");
            surePassWord();
        }
    }

    public void run() {
        name.input();
        passWord.input();
        surePassWord();
        email.input();
    }

    public static void main(String[] args) {
        Page page = new Page();
        page.run();
    }
}
